<template>
  <div class="">
    about
    <div>测试 pinia:</div>
    <button @click="add">pinia +</button>
    <div>{{ counterStore.count }}</div>
    <el-button type="primary">测试</el-button>
    <demo />
  </div>
</template>

<script setup lang="ts">
import { useCounterStore } from "@/stores/counter"
const counterStore = useCounterStore()
const { proxy } = getCurrentInstance()!
proxy?.$message.success("恭喜你，这是⼀条成功消息")

const add = () => {
  counterStore.increment()
}
</script>

<style lang="scss" scoped></style>
